<%--
  Created by IntelliJ IDEA.
  User: 刘科
  Date: 2020/12/5
  Time: 15:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="top">
    <p ><i class="fa fa-user"></i><span id="user"></span>
        <a href="grzx.jsp"><i class="fa fa-check-circle"></i>个人中心</a>
</div>
<!-- top end -->
<div class="menu">
    <div class="nav">
        <ul>
            <li class="li_hover"><a href="gsjj.jsp">公司简介</a></li>
            <li><a href="cpzs.jsp">产品展示</a></li>
            <li><a href="news.jsp">新闻动态</a></li>
            <li style="background:none;"><a href="lxwm.jsp">联系我们</a></li>
        </ul>
        <div class="clear"></div>
    </div>
</div>
<!-- nav end -->
<div class="banner">
    <ul id="naviSlider">
        <li sindex="1" class="on"></li>
        <li sindex="2" ></li>
        <li sindex="3" ></li>
    </ul>
    <ul id="slider">
        <li id="myicloud"><a href="#" style="background:url(../upfiles/banner1.jpg) center no-repeat;"></a></li>
        <li><a href="#" style="background:url(../upfiles/banner1.jpg) center no-repeat;"></a></li>
        <li><a href="#" style="background:url(../upfiles/banner1.jpg) center no-repeat;"></a></li>
    </ul>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#slider").jSlider({
                pause:5000,
                naviSlider:'naviSlider'
            });
        });

        var user = JSON.parse(sessionStorage.getItem("user"));
        if (user == null) {
            alert("请登录");
            window.location.href=ctx + "user/user_login.jsp";
        }

        $("#user").text(user.pnName);
    </script>
</div>
<!-- banner end -->
